
        <input type="hidden" name="questTypeId" value="<%= currQuestType.getId()%>">
        <input type="hidden" name="id" value="<%= request.getParameter("id")%>">
        <input type="hidden" name="status" >
        <input type="hidden" name="serviceURL">
        <input type="hidden" id="tmp" name="tmp" value="0">
</form>
<script>
        new Form.Observer('detailForm',
                          2,
                          function (element,value)
                          {
                              if($("tmp").value.length == 10)
                              {
                                  $("tmp").value = "";
                              }
                              else
                              {
                                $("tmp").value = $("tmp").value + "1";
                              }
                              validate();                              
                          });
</script>
<script>
	// 难度
	addOption($('difficultyId'),"--请选择--","--请选择--");
<%
	
	Object[] difficultys = typeManager.getByCode("difficulty").getSubTypes().toArray();
	for(int i = 0; i < difficultys.length; i ++)
	{
		Type difficulty = (Type)difficultys[i];
		%>addOption($('difficultyId'),"<%= difficulty.getId()%>","<%= difficulty.getName()%>");<%
	}//
%>

	// 来源
	addOption($('sourceId'),"--请选择--","--请选择--");
<%
	
	Object[] sources = typeManager.getByCode("questionSource").getSubTypes().toArray();
	for(int i = 0; i < sources.length; i ++)
	{
		Type source = (Type)sources[i];
		%>addOption($('sourceId'),"<%= source.getId()%>","<%= source.getName()%>");<%
	}//
%>
</script>
